//
//  SaveTool.h
//  AFNnetworking
//
//  Created by dllo on 15/11/26.
//  Copyright © 2015年 mjh. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JSMTouringModel.h"
#import "JSMDreamCityModel.h"
#import "JSMDreamCityPrecialTrailsDetailModel.h"
#import "JSMLeavingHeaderShowCityModel.h"
//保存种类判断
typedef enum : NSUInteger {
    SaveLeavingModel ,
    SaveDreamCitySpecialModel,
    SaveDreamCityPrefectureModel,
    SaveTouringModel,
    SaveStrategyModel,
} saveModel;

@interface SaveTool : NSObject

//是否存在文件夹
+ (void)isHaveModelFolder;
//是否存在在plist文件
+ (BOOL)isHaveModelInPlist:(id)model type:(saveModel)type;
//保存
+ (void)saveModelToPlist:(id)model type:(saveModel)type;
//取消
+ (void)cancelSaveModelInPlist:(id)model type:(saveModel)type;

//显示所有收藏
+ (NSMutableArray *)allSaveModelInPlisttype:(saveModel)type;

@end
